using UnityEngine;
using System.Collections;

public class AlienResource : MonoBehaviour {
	
	static protected AlienResource resource=null;
	static public AlienResource Resource {
		get { 
			if (resource == null) {
				GameObject obj= GameObject.Find("AlienManager");
								
				if(obj != null) 
					resource= obj.GetComponent<AlienResource>();
				else
					UnityEngine.Debug.LogError("ERROR! Missing AlienManager prefab in the scene. Must be added");
			}
			return resource;
		}
	}

	
	public GameObject AlienPrefab;
}
